GStreamer Jetson Pipelines

From RidgeRun Developer Wiki

Follow Us On Twitter LinkedIn Email Share this page







Preferred Partner Logo 3 Partner Program Banner




Jetson Pipelines

The following pipelines use the sample rrbrowsersink.js file and the index.html provided in the evaluation version and the repository. This files can be modified or changed depending on your requirements but in general the same pipelines can work.

In Jetson it is possible to use NVIDIA elements.

File to Browser

The following pipeline reads a video file and then streams it to the page by using the rrbrowsersink element.

VIDEO=<PATH_TO_VIDEO_FILE>
gst-launch-1.0 filesrc location=$VIDEO ! qtdemux ! h264parse ! nvv4l2decoder ! queue ! nvvidconv ! queue ! identity sync=true ! nvv4l2h264enc preset-level=1 profile=1 insert-sps-pps=true iframeinterval=30 bitrate=500000  ! h264parse ! rrbrowsersink port=8080 reliable=false

You can also read an image and then deploy it in the browser as follows.

IMAGE=<PATH_TO_IMAGE_FILE>
gst-launch-1.0 filesrc location=$IMAGE ! jpegparse ! nvjpegdec ! queue ! imagefreeze ! nvvidconv ! nvv4l2h264enc preset-level=1 profile=1 insert-sps-pps=true iframeinterval=30 bitrate=500000  ! h264parse ! rrbrowsersink port=8080 reliable=false

Camera to Browser

The following pipeline shows how to project the camera capture to the browser with rrbrowsersink.

gst-launch-1.0 nvvarguscamerasrc ! queue max-size-buffers=3 leaky=downstream ! nvvidconv ! queue ! x264enc key-int-max=30 speed-preset=ultrafast tune=zerolatency bitrate=5000 ! h264parse ! rrbrowsersink port=8080 reliable=false